﻿using EONFULLSIN2.Models.Entity.Base;
using EONFULLSIN2.Models.Enum;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EONFULLSIN2.Models.Entity.User
{
    [Table(Name = "base_user")]
    public partial class User : EntityBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; } = "123456";

        /// <summary>
        /// 权限等级
        /// </summary>
        public eRoleTypeEnum Rank { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime LastLoginTime { get; set; }

        /// <summary>
        /// 是否管理员
        /// </summary>
        public bool IsAdmin { get; set; } = false;

        /// <summary>
        /// 状态
        /// </summary>
        public bool Status { get; set; } = true;

        /// <summary>
        /// 排序
        /// </summary>
        public int Soft { get; set; }

        /// <summary>
        /// 是否选中
        /// </summary>
        [Column(IsIgnore = true)]
        public bool Selected { get; set; }
    }

}
